// 防止页面后退

export default {
    
    mounted() {
        this.noback_stopback();
        window.addEventListener("popstate", this.noback_stopback);
    },

    destroyed() {
        window.removeEventListener("popstate",this.noback_stopback);
    },

    methods: {
        noback_stopback() {
            history.pushState(null, "", document.URL);
        }
    }
};
